class CreateWorkTimes < ActiveRecord::Migration[5.2]
  def change
    create_table :work_times do |t|
      t.integer :restaurant_id, null: false,  limit: 8
      t.string  :name,          null: true,   limit: 16
      t.string  :status,        null: false,  limit: 32
      t.timestamps              null: false
    end

    add_foreign_key :work_times,  :restaurants
  end
end
